function deleteBlog(id) {
    fetch('/deleteblog', {
        method: 'POST',
        headers: {
            'Content-Type': 'application/json'
        },
        body: JSON.stringify({ "blog_id":id })
    })
    .then(location.reload())
    .then(data => console.log(data))
    .catch(error => console.error('Error:', error));
}

function deleteWord(id) {
    fetch('/deleteword', {
        method: 'POST',
        headers: {
            'Content-Type': 'application/json'
        },
        body: JSON.stringify({ "word_id":id })
    })
    .then(location.reload())
    .then(data => console.log(data))
    .catch(error => console.error('Error:', error));
}